<?php
/**
 * お問合せ　ベースコントローラクラス<br />
 *
 * @package apamanshop
 * @author
 * @copyright
 */
abstract class Inquiry_BaseController extends Apm_Controller_Base
{
    /** 表示テンプレートパス */
    protected $_display_path = null;


    /** ログインヘルパー */
    protected $_login_helper = null;

    /** ログイン成功ヘルパー */
    protected $_loginok_helper = null;

    /** ログイン失敗ヘルパー */
    protected $_loginng_helper = null;

    /** ASN入力画面ヘルパー */
    protected $_asmemberentry_helper = null;

    /** ASN確認画面ヘルパー */
    protected $_asmembercnf_helper = null;

    /** ASN完了画面ヘルパー */
    protected $_asmembersend_helper = null;

    /** ASN法人お問合せ入力画面ヘルパー */
    protected $_corporateentry_helper = null;

    /** ASN法人お問合せ確認画面ヘルパー */
    protected $_corporatecnf_helper = null;

    /** ASN法人お問合せ完了画面ヘルパー */
    protected $_corporatesend_helper = null;

    /** 物件リクエスト入力画面ヘルパー */
    protected $_asrequestentry_helper = null;

    /** 物件リクエスト確認画面ヘルパー */
    protected $_asrequestcnf_helper = null;

    /** 物件リクエスト完了画面ヘルパー */
    protected $_asrequestsend_helper = null;

    /** 店舗問合せ入力画面ヘルパー */
    protected $_shopentry_helper = null;

    /** 店舗問合せ確認画面ヘルパー */
    protected $_shopcnf_helper = null;

    /** 店舗問合せ完了画面ヘルパー */
    protected $_shopsend_helper = null;

    /** 各種お問い合せ入力画面ヘルパー */
    protected $_etcentry_helper = null;

    /** 各種お問い合せ確認画面ヘルパー */
    protected $_etccnf_helper = null;

    /** 各種お問い合せ完了画面ヘルパー */
    protected $_etcsend_helper = null;

    /** 不適切物件お問い合せ入力画面ヘルパー */
    protected $_claimentry_helper = null;

    /** 不適切物件お問い合せ確認画面ヘルパー */
    protected $_claimcnf_helper = null;

    /** 不適切物件お問い合せ完了画面ヘルパー */
    protected $_claimsend_helper = null;

    /** 情報誌のご案内入力画面ヘルパー */
    protected $_magazineentry_helper = null;

    /** 情報誌のご案内確認画面ヘルパー */
    protected $_magazinecnf_helper = null;

    /** 情報誌のご案内完了画面ヘルパー */
    protected $_magazinesend_helper = null;

    /** 物件リクエスト入力画面ヘルパー */
    protected $_requestentry_helper = null;

    /** 物件リクエスト確認画面ヘルパー */
    protected $_requestcnf_helper = null;

    /** 物件リクエスト完了画面ヘルパー */
    protected $_requestsend_helper = null;

    /** 物件リクエスト入力画面ヘルパー */
    protected $_requestentry_easy_helper = null;

    /** 物件リクエスト確認画面ヘルパー */
    protected $_requestcnf_easy_helper = null;

    /** 物件リクエスト完了画面ヘルパー */
    protected $_requestsend_easy_helper = null;

    /** 物件お問い合せ入力画面ヘルパー */
    protected $_bukkenentry_helper = null;

    /** 物件お問い合せ確認画面ヘルパー */
    protected $_bukkencnf_helper = null;

    /** 物件お問い合せ完了画面ヘルパー */
    protected $_bukkensend_helper = null;

    /** ヘッダーヘルパー */
    protected $_header_helper = null;

    /** フッターヘルパー */
    protected $_footer_helper = null;

    /** スクリプトーヘルパー */
    protected $_script_helper = null;

    /** パンくずリストヘルパー */
    protected $_topicpath_helper = null;

    /** パンくずリストヘルパー（不適切物件用） */
    protected $_topicpathforclaim_helper = null;

    /** ASNヘッダーヘルパー */
    protected $_asnheader_helper = null;

    /** ASNフッターヘルパー */
    protected $_asnfooter_helper = null;

    /** ASNヘッダーコメント（入力画面）ヘルパー */
    protected $_asncommententry_helper = null;

    /** ASNヘッダーコメント（確認画面）ヘルパー */
    protected $_asncommentcnf_helper = null;

    /** ASN問合せ物件（入力画面、確認画面）ヘルパー */
    protected $_asnbukken_helper = null;

	/** キャンペーンエントリー画面ヘルパー */
	protected $_campaign_entry_helper = null;

	/** キャンペーンエラー画面ヘルパー */
	protected $_campaign_error_helper = null;

	/** キャンペーンエントリー確認画面ヘルパー */
	protected $_campaign_cnf_helper = null;

	/** キャンペーン送信画面ヘルパー */
	protected $_campaign_send_helper = null;

	/** 法人専用問い合わせ入力画面ヘルパー */
	protected $_asmemberetc_entry_helper = null;

	/** 法人専用問い合わせ確認画面ヘルパー */
	protected $_asmemberetc_conf_helper = null;

	/** 法人専用問い合わせ送信画面ヘルパー */
	protected $_asmemberetc_send_helper = null;

	/** 法人専用問い合わせ送信エラー画面ヘルパー */
	protected $_asmemberetc_error_helper = null;

    /** javascript(ログイン) */
    protected $_js_members_helper = null;

    /** javascript(ASNお問合せ) */
    protected $_script_asmember_helper = null;

    /** javascript(ASN法人お問合せ) */
    protected $_script_corporate_helper = null;

    /** javascript(店舗問合せ) */
    protected $_script_shop_helper = null;

    /** javascript(各種お問い合せ) */
    protected $_script_etc_helper = null;

    /** javascript(不適切物件お問い合せ) */
    protected $_script_claim_helper = null;

    /** javascript(情報誌のご案内) */
    protected $_script_magazine_helper = null;

    /** javascript(物件リクエスト) */
    protected $_script_request_helper = null;

    /** javascript(ASリクエスト) */
    protected $_script_asrequest_helper = null;

    /** javascript(物件お問い合せ) */
    protected $_script_bukken_helper = null;

	/** javascript(キャンペーンエントリー) */
	protected $_script_campaign_helper = null;

	/** javascript(法人専用問い合わせ) */
	protected $_script_asmemberetc_helper = null;

    /** ASNヘルパー変数 */
    protected $subblock = array();

    /** ASNヘルパー変数 */
    protected $block = array();

    /** ASNヘルパー変数 */
    protected $scriptblock = array();

    /** ASNヘルパー変数 */
    protected $scriptasblock = array();

    /** 加盟店ページ遷移時用ヘッダフッタヘルパー変数 */		/* 2011/07/22　AKBｷｬﾝﾍﾟｰﾝ：加盟店ﾒﾝﾊﾞｰｻｲﾄ追加対応 */
    protected $_shoppage_header_helper = array();
    protected $_shoppage_footer_helper = array();



    /**
     * ヘルパー前処理
     */
    public function preDispatch()
    {
    	// ベースURL設定
    	$this->_baseurl      = $this->_config['apm']['baseurl'];
        $this->_aplbaseurl   = $this->_config['apm']['apl']['static']['baseurl'];
		$this->_sslurl       = $this->_config['apm']['ssl']['baseurl'];

    	$this->_display_path = '';
    	$inquiry_helper_path = APPLICATION_PATH . '/modules/inquiry/views/helpers/';
    	$inquiry_script_path = APPLICATION_PATH.'/modules/inquiry/views/helpers/';

    	$shop_helper_path = APPLICATION_PATH . '/modules/shop/views/helpers/';

    	//=====ヘルパー設定=====
    	//ASログイン画面
        $this->_login_helper = $this->getApmHelper($inquiry_helper_path . 'membersLogin_helper.tpl');
        $this->_loginok_helper = $this->getApmHelper($inquiry_helper_path . 'membersOk_helper.tpl');
        $this->_loginng_helper = $this->getApmHelper($inquiry_helper_path . 'membersNg_helper.tpl');

    	//ASNお問合せ画面
        $this->_asmemberentry_helper = $this->getApmHelper($inquiry_helper_path . 'asmemberEntry_helper.tpl');
        $this->_asmembercnf_helper = $this->getApmHelper($inquiry_helper_path . 'asmemberCnf_helper.tpl');
        $this->_asmembersend_helper = $this->getApmHelper($inquiry_helper_path . 'asmemberSend_helper.tpl');

    	//ASN法人お問合せ画面
        $this->_corporateentry_helper = $this->getApmHelper($inquiry_helper_path . 'corporateEntry_helper.tpl');
        $this->_corporatecnf_helper = $this->getApmHelper($inquiry_helper_path . 'corporateCnf_helper.tpl');
        $this->_corporatesend_helper = $this->getApmHelper($inquiry_helper_path . 'corporateSend_helper.tpl');

    	//AS物件リクエスト画面
        $this->_asrequestentry_helper = $this->getApmHelper($inquiry_helper_path . 'asrequestEntry_helper.tpl');
        $this->_asrequestcnf_helper = $this->getApmHelper($inquiry_helper_path . 'asrequestCnf_helper.tpl');
        $this->_asrequestsend_helper = $this->getApmHelper($inquiry_helper_path . 'asrequestSend_helper.tpl');

        //店舗問合せ入力
        $this->_shopentry_helper = $this->getApmHelper($inquiry_helper_path . 'shopEntry_helper.tpl');
        $this->_shopcnf_helper = $this->getApmHelper($inquiry_helper_path . 'shopCnf_helper.tpl');
        $this->_shopsend_helper = $this->getApmHelper($inquiry_helper_path . 'shopSend_helper.tpl');

        //各種お問い合せ
        $this->_etcentry_helper = $this->getApmHelper($inquiry_helper_path . 'etcEntry_helper.tpl');
        $this->_etccnf_helper = $this->getApmHelper($inquiry_helper_path . 'etcCnf_helper.tpl');
        $this->_etcsend_helper = $this->getApmHelper($inquiry_helper_path . 'etcSend_helper.tpl');

        //不適切物件お問い合せ
        $this->_claimentry_helper = $this->getApmHelper($inquiry_helper_path . 'claimEntry_helper.tpl');
        $this->_claimcnf_helper = $this->getApmHelper($inquiry_helper_path . 'claimCnf_helper.tpl');
        $this->_claimsend_helper = $this->getApmHelper($inquiry_helper_path . 'claimSend_helper.tpl');

    	//情報誌のご案内画面
        $this->_magazineentry_helper = $this->getApmHelper($inquiry_helper_path . 'magazineEntry_helper.tpl');
        $this->_magazinecnf_helper = $this->getApmHelper($inquiry_helper_path . 'magazineCnf_helper.tpl');
        $this->_magazinesend_helper = $this->getApmHelper($inquiry_helper_path . 'magazineSend_helper.tpl');

    	//物件リクエスト画面
        $this->_requestentry_helper = $this->getApmHelper($inquiry_helper_path . 'requestEntry_helper.tpl');
        $this->_requestcnf_helper = $this->getApmHelper($inquiry_helper_path . 'requestCnf_helper.tpl');
        $this->_requestsend_helper = $this->getApmHelper($inquiry_helper_path . 'requestSend_helper.tpl');

    	//物件リクエスト画面
        $this->_requestentry_easy_helper = $this->getApmHelper($inquiry_helper_path . 'requestEntry_easy_helper.tpl');
        $this->_requestcnf_easy_helper = $this->getApmHelper($inquiry_helper_path . 'requestCnf_easy_helper.tpl');
        $this->_requestsend_easy_helper = $this->getApmHelper($inquiry_helper_path . 'requestSend_easy_helper.tpl');

    	//物件お問い合せ画面
        $this->_bukkenentry_helper = $this->getApmHelper($inquiry_helper_path . 'bukkenEntry_helper.tpl');
        $this->_bukkencnf_helper = $this->getApmHelper($inquiry_helper_path . 'bukkenCnf_helper.tpl');
        $this->_bukkensend_helper = $this->getApmHelper($inquiry_helper_path . 'bukkenSend_helper.tpl');

		//キャンペーンエントリー
		$this->_campaign_entry_helper = $this->getApmHelper($inquiry_helper_path . 'campaignEntry_helper.tpl');
		$this->_campaign_error_helper = $this->getApmHelper($inquiry_helper_path . 'campaignError_helper.tpl');
		$this->_campaign_cnf_helper   = $this->getApmHelper($inquiry_helper_path . 'campaignCnf_helper.tpl');
		$this->_campaign_send_helper  = $this->getApmHelper($inquiry_helper_path . 'campaignSend_helper.tpl');

		//法人専用問い合わせ
		$this->_asmemberetc_entry_helper = $this->getApmHelper($inquiry_helper_path . 'asmemberetcEntry_helper.tpl');
		$this->_asmemberetc_conf_helper  = $this->getApmHelper($inquiry_helper_path . 'asmemberetcConf_helper.tpl');
		$this->_asmemberetc_send_helper  = $this->getApmHelper($inquiry_helper_path . 'asmemberetcSend_helper.tpl');
		$this->_asmemberetc_error_helper = $this->getApmHelper($inquiry_helper_path . 'asmemberetcSendError_helper.tpl');

		//加盟店ページ用ヘッダフッタ画面	/* 2011/07/22　AKBｷｬﾝﾍﾟｰﾝ：加盟店ﾒﾝﾊﾞｰｻｲﾄ追加対応 */
		$this->_shoppage_header_helper  = $this->getApmHelper($shop_helper_path . 'shoppage/pageheader_helper.tpl');
		$this->_shoppage_footer_helper  = $this->getApmHelper($shop_helper_path . 'shoppage/pagefooter_helper.tpl');

    	//===不動産賃貸共通===
    	//パンくずリスト
		$this->_topicpath_helper = $this->getApmHelper($inquiry_helper_path . 'common/' . 'topicpath.tpl');
    	//パンくずリスト（不適切物件用：パス２つまで表示）
		$this->_topicpathforclaim_helper = $this->getApmHelper($inquiry_helper_path . 'common/' . 'topicpathforclaim.tpl');
    	//JS設定
		$this->_script_helper = $this->getApmHelper($inquiry_helper_path . 'common/' . 'script.tpl');

    	//===ASN共通===
    	//ASNヘッダー
		$this->_asnheader_helper = $this->getApmHelper($inquiry_helper_path . 'common/' . 'asnheader.tpl');
    	//ASNフッター
		$this->_asnfooter_helper = $this->getApmHelper($inquiry_helper_path . 'common/' . 'asnfooter.tpl');
    	//ASNヘッダーコメント（入力画面）
		$this->_asncommententry_helper = $this->getApmHelper($inquiry_helper_path . 'common/' . 'asncommententry.tpl');
    	//ASNヘッダーコメント（確認画面）
		$this->_asncommentcnf_helper = $this->getApmHelper($inquiry_helper_path . 'common/' . 'asncommentcnf.tpl');
		//ASN問合せ物件（入力画面、確認画面）
		$this->_asnbukken_helper = $this->getApmHelper($inquiry_helper_path . 'common/' . 'asnbukken.tpl');

		//===javascript===
        //ASログイン
		$this->_js_members_helper = $this->getApmHelper($inquiry_script_path . 'js/' . 'membersLogin.tpl');
        //ASお問合せ
		$this->_script_asmember_helper = $this->getApmHelper($inquiry_script_path . 'js/' . 'asmemberScript.tpl');
        //ASN法人お問合せ
		$this->_script_corporate_helper = $this->getApmHelper($inquiry_script_path . 'js/' . 'corporateScript.tpl');
		//AS物件リクエスト
		$this->_script_asrequest_helper = $this->getApmHelper($inquiry_script_path . 'js/' . 'asrequestScript.tpl');
        //情報誌のご案内
		$this->_script_magazine_helper = $this->getApmHelper($inquiry_script_path . 'js/' . 'magazineScript.tpl');
        //物件リクエスト
		$this->_script_request_helper = $this->getApmHelper($inquiry_script_path . 'js/' . 'requestScript.tpl');
        //物件お問合せ
		$this->_script_bukken_helper = $this->getApmHelper($inquiry_script_path . 'js/' . 'bukkenScript.tpl');
		//店舗問合せ
		$this->_script_shop_helper = $this->getApmHelper($inquiry_script_path . 'js/' . 'shopScript.tpl');
		//各種お問合せ
		$this->_script_etc_helper = $this->getApmHelper($inquiry_script_path . 'js/' . 'etcScript.tpl');
		//不適切物件お問合せ
		$this->_script_claim_helper = $this->getApmHelper($inquiry_script_path.'js/'.'claimScript.tpl');
		//キャンペーンエントリー
		$this->_script_campaign_helper = $this->getApmHelper($inquiry_script_path.'js/'.'campaignScript.tpl');
		//法人専用問い合わせ
		$this->_script_asmemberetc_helper = $this->getApmHelper($inquiry_script_path.'js/'.'asmemberetcScript.tpl');

		//=====パラメータの取得=====
        $this->_params = $this->getParameters();
		// SSL設定
		$this->_params['baseurl'] = $this->_baseurl;
		$this->_params['sslurl']  = $this->_sslurl;

    }

    /**
     * ASN入力画面サブBlock設定
     * @param unknown_type $helper ヘルパー
     */
    protected function setSubblockAsmemberEntry()
    {
        	//ASN入力画面
	        $this->subblock['asncomment'] = $this->_asncommententry_helper->getBlock($this->_data);
	        $this->subblock['asnbukken'] = $this->_asnbukken_helper->getBlock($this->_data);
	        $this->subblock['script_as'] = $this->_script_asmember_helper->getBlock($this->_data);
	        $this->_data['subblock'] = $this->subblock;
    }

     /**
     * ASN確認画面サブBlock設定
     * @param unknown_type $helper ヘルパー
     */
    protected function setSubblockAsmemberCnf()
    {
        	//ASN確認画面
	        $this->subblock['asncomment'] = $this->_asncommentcnf_helper->getBlock($this->_data);
	        $this->subblock['asnbukken'] = $this->_asnbukken_helper->getBlock($this->_data);
	        $this->subblock['script_as'] = $this->_script_asmember_helper->getBlock($this->_data);
	        $this->_data['subblock'] = $this->subblock;
    }
     /**
     * ASN完了画面サブBlock設定
     * @param unknown_type $helper ヘルパー
     */
    protected function setSubblockAsmemberSend()
    {
        	//ASN確認画面
	        $this->subblock['script_as'] = $this->_script_asmember_helper->getBlock($this->_data);
	        $this->_data['subblock'] = $this->subblock;
    }
    /**
     * ASN法人お問い合わせ画面サブBlock設定
     * @param unknown_type $helper ヘルパー
     */
    protected function setSubblockCorporate()
    {
        	//ASN入力画面
	        $this->subblock['script_as'] = $this->_script_corporate_helper->getBlock($this->_data);
	        $this->_data['subblock'] = $this->subblock;
    }

    /**
     * 不動産賃貸共通サブBlock設定
     * @param unknown_type $helper ヘルパー
     */
    protected function setSubblockHpCommon()
    {
	        $this->subblock['topicpath'] = $this->_topicpath_helper->getBlock($this->_data);
	        $this->_data['subblock'] = $this->subblock;
    }

    /**
     * 不動産賃貸共通サブBlock設定（不適切物件お問い合わせ用：パンくずリストパス２つまで）
     * @param unknown_type $helper ヘルパー
     */
    protected function setSubblockClaimCommon()
    {
	        $this->subblock['topicpath'] = $this->_topicpathforclaim_helper->getBlock($this->_data);
	        $this->_data['subblock'] = $this->subblock;
    }

    /**
     * 情報誌のご案内(javaScript、css)Block設定
     * @param unknown_type $helper ヘルパー
     */
    protected function setBlockMagazineScript()
    {
	        $this->scriptblock['script'] = $this->_script_magazine_helper->getBlock($this->_data);
	        $this->_data['scriptblock'] = $this->scriptblock;
    }

    /**
     * 物件リクエスト(javaScript、css)Block設定
     * @param unknown_type $helper ヘルパー
     */
    protected function setBlockRequestScript()
    {
	        $this->scriptblock['script'] = $this->_script_request_helper->getBlock($this->_data);
	        $this->_data['scriptblock'] = $this->scriptblock;
    }

    /**
     * AS物件リクエスト(javaScript、css)Block設定
     * @param unknown_type $helper ヘルパー
     */
    protected function setBlockAsRequestScript()
    {
	        $this->scriptblock['script'] = $this->_script_asrequest_helper->getBlock($this->_data);
	        $this->_data['scriptblock'] = $this->scriptblock;
    }

    /**
     * 店舗お問合せ(javaScript、css)Block設定
     * @param unknown_type $helper ヘルパー
     */
    protected function setBlockShopScript()
    {
	        $this->scriptblock['script'] = $this->_script_shop_helper->getBlock($this->_data);
	        $this->_data['scriptblock'] = $this->scriptblock;
    }

    /**
     * 不適切物件お問合せ(javaScript、css)Block設定
     * @param unknown_type $helper ヘルパー
     */
    protected function setBlockClaimScript()
    {
	        $this->scriptblock['script'] = $this->_script_claim_helper->getBlock($this->_data);
	        $this->_data['scriptblock'] = $this->scriptblock;
    }

    /**
     * 各種お問合せ(javaScript、css)Block設定
     * @param unknown_type $helper ヘルパー
     */
    protected function setBlockEtcScript()
    {
	        $this->scriptblock['script'] = $this->_script_etc_helper->getBlock($this->_data);
	        $this->_data['scriptblock'] = $this->scriptblock;
    }

    /**
     * 物件お問合せ(javaScript、css)Block設定
     * @param unknown_type $helper ヘルパー
     */
    protected function setBlockBukkenScript()
    {
	        $this->scriptblock['script'] = $this->_script_bukken_helper->getBlock($this->_data);
	        $this->_data['scriptblock'] = $this->scriptblock;
    }

	/* 2011/07/22　AKBｷｬﾝﾍﾟｰﾝ：加盟店ﾒﾝﾊﾞｰｻｲﾄ追加対応 */
    /**
     * 加盟店ページ用ヘッダのBlock設定
     *
     */
    protected function setBlockShoppageHeader()
    {
        $this->block['shoppage_header']   = $this->_shoppage_header_helper->getBlock($this->_data);
        $this->block['shoppage_footer']   = $this->_shoppage_footer_helper->getBlock($this->_data);
    }

    /**
     * 各Block設定
     * @param unknown_type $helper ヘルパー
     */
    protected function setBlock($helper = '')
    {
        // メインBLOCK設定（引数が無い場合は空文字で設定）
        $this->block['main'] = (is_string($helper)) ? $helper : $helper->getBlock($this->_data);

        // javascript
        $this->block['js_members'] = $this->_js_members_helper->getBlock($this->_data);
        $this->block['script_hp'] = $this->_script_helper->getBlock($this->_data);
        $this->_data['block'] = $this->block;
    }

	/**
	 * 問い合わせ画面の共通パラメータ設定
	 *
	 */
	protected function setCommonParams()
	{
		$CntctWayFax = (array_key_exists('CntctWayFax', $this->_params)) ? $this->_params['CntctWayFax'] : null;
		$CntctWayMail = (array_key_exists('CntctWayMail', $this->_params)) ? $this->_params['CntctWayMail'] : null;
		$CntctWayTel = (array_key_exists('CntctWayTel', $this->_params)) ? $this->_params['CntctWayTel'] : null;
		$CntctWayCd = (array_key_exists('CntctWayCd', $this->_params)) ? $this->_params['CntctWayCd'] : null;
		$CntctWayStr = (array_key_exists('CntctWayStr', $this->_params)) ? $this->_params['CntctWayStr'] : null;
		$Fax = (array_key_exists('Fax', $this->_params)) ? $this->_params['Fax'] : null;
		$Inquiry1 = (array_key_exists('Inquiry1', $this->_params)) ? $this->_params['Inquiry1'] : null;
		$Inquiry2 = (array_key_exists('Inquiry2', $this->_params)) ? $this->_params['Inquiry2'] : null;
		$Inquiry3 = (array_key_exists('Inquiry3', $this->_params)) ? $this->_params['Inquiry3'] : null;
		$Inquiry4 = (array_key_exists('Inquiry4', $this->_params)) ? $this->_params['Inquiry4'] : null;
		$Inquiry5 = (array_key_exists('Inquiry5', $this->_params)) ? $this->_params['Inquiry5'] : null;
		$Mail = (array_key_exists('Mail', $this->_params)) ? $this->_params['Mail'] : null;
		$MailMgznFlg = (array_key_exists('MailMgznFlg', $this->_params)) ? $this->_params['MailMgznFlg'] : null;
		$Name = (array_key_exists('Name', $this->_params)) ? $this->_params['Name'] : null;
		$NameMei = (array_key_exists('NameMei', $this->_params)) ? $this->_params['NameMei'] : null;
		$NameSei = (array_key_exists('NameSei', $this->_params)) ? $this->_params['NameSei'] : null;
		$KanaSei = (array_key_exists('KanaSei', $this->_params)) ? $this->_params['KanaSei'] : null;
		$KanaMei = (array_key_exists('KanaMei', $this->_params)) ? $this->_params['KanaMei'] : null;
		$NeedTimeKbn = (array_key_exists('NeedTimeKbn', $this->_params)) ? $this->_params['NeedTimeKbn'] : null;
		$PlaceKbn = (array_key_exists('PlaceKbn', $this->_params)) ? $this->_params['PlaceKbn'] : null;
		$ShopCd = (array_key_exists('ShopCd', $this->_params)) ? $this->_params['ShopCd'] : null;
		$Tel = (array_key_exists('Tel', $this->_params)) ? $this->_params['Tel'] : null;
		$UseKbn = (array_key_exists('UseKbn', $this->_params)) ? $this->_params['UseKbn'] : null;
		$SrhKbn = (array_key_exists('SrhKbn', $this->_params)) ? $this->_params['SrhKbn'] : null;
		$OemCd = (array_key_exists('OemCd', $this->_params)) ? $this->_params['OemCd'] : null;
		$Url = (array_key_exists('Url', $this->_params)) ? $this->_params['Url'] : null;
		$Company = (array_key_exists('Company', $this->_params)) ? $this->_params['Company'] : null;
		$CtgryCd = (array_key_exists('CtgryCd', $this->_params)) ? $this->_params['CtgryCd'] : null;
		$ClaimTgtKbn = (array_key_exists('ClaimTgtKbn', $this->_params)) ? $this->_params['ClaimTgtKbn'] : null;
		$Mrrg = (array_key_exists('Mrrg', $this->_params)) ? $this->_params['Mrrg'] : null;
		$MrrgNm = (array_key_exists('MrrgNm', $this->_params)) ? $this->_params['MrrgNm'] : null;
		$BuyExp = (array_key_exists('BuyExp', $this->_params)) ? $this->_params['BuyExp'] : null;
		$BuyExpNm = (array_key_exists('BuyExpNm', $this->_params)) ? $this->_params['BuyExpNm'] : null;
		$Comment = (array_key_exists('Comment', $this->_params)) ? $this->_params['Comment'] : null;
		$Other = (array_key_exists('Other', $this->_params)) ? $this->_params['Other'] : null;
		$SiteKbn = (array_key_exists('SiteKbn', $this->_params)) ? $this->_params['SiteKbn'] : null;
		$Address = (array_key_exists('Address', $this->_params)) ? $this->_params['Address'] : null;
		$Address1 = (array_key_exists('Address1', $this->_params)) ? $this->_params['Address1'] : null;
		$Address2 = (array_key_exists('Address2', $this->_params)) ? $this->_params['Address2'] : null;
		$JobKbn = (array_key_exists('JobKbn', $this->_params)) ? $this->_params['JobKbn'] : null;
		$JobNm = (array_key_exists('JobNm', $this->_params)) ? $this->_params['JobNm'] : null;
		$Sex = (array_key_exists('Sex', $this->_params)) ? $this->_params['Sex'] : null;
		$SexNm = (array_key_exists('SexNm', $this->_params)) ? $this->_params['SexNm'] : null;
		$Charge = (array_key_exists('Charge', $this->_params)) ? $this->_params['Charge'] : null;
		$ChargeNm = (array_key_exists('ChargeNm', $this->_params)) ? $this->_params['ChargeNm'] : null;
		$ChargeNmKana = (array_key_exists('ChargeNmKana', $this->_params)) ? $this->_params['ChargeNmKana'] : null;
		$TenpoNm = (array_key_exists('TenpoNm', $this->_params)) ? $this->_params['TenpoNm'] : null;
		$TenpoMail = (array_key_exists('TenpoMail', $this->_params)) ? $this->_params['TenpoMail'] : null;
		$PrefCd = (array_key_exists('PrefCd', $this->_params)) ? $this->_params['PrefCd'] : null;
		$PrefName = (array_key_exists('PrefName', $this->_params)) ? $this->_params['PrefName'] : null;
		$AgeKbn = (array_key_exists('AgeKbn', $this->_params)) ? $this->_params['AgeKbn'] : null;
		$AgeNm = (array_key_exists('AgeNm', $this->_params)) ? $this->_params['AgeNm'] : null;
		$Busho = (array_key_exists('Busho', $this->_params)) ? $this->_params['Busho'] : null;
		$BukkenCd = (array_key_exists('BukkenCd', $this->_params)) ? $this->_params['BukkenCd'] : null;
		$Matrix = (array_key_exists('Matrix', $this->_params)) ? $this->_params['Matrix'] : null;
		$Yakushoku = (array_key_exists('Yakushoku', $this->_params)) ? $this->_params['Yakushoku'] : null;
		$Zip = (array_key_exists('Zip', $this->_params)) ? $this->_params['Zip'] : null;
		$Zip1 = (array_key_exists('Zip1', $this->_params)) ? $this->_params['Zip1'] : null;
		$Zip2 = (array_key_exists('Zip2', $this->_params)) ? $this->_params['Zip2'] : null;
		$TargetKbn = (array_key_exists('TargetKbn', $this->_params)) ? $this->_params['TargetKbn'] : null;
		$TargetNm = (array_key_exists('TargetNm', $this->_params)) ? $this->_params['TargetNm'] : null;
		$ComId = (array_key_exists('ComId', $this->_params)) ? $this->_params['ComId'] : null;
		$HikkoshiRiyuuText = (array_key_exists('HikkoshiRiyuuText', $this->_params)) ? $this->_params['HikkoshiRiyuuText'] : null;
		$HikkoshiRiyuu = (array_key_exists('HikkoshiRiyuu', $this->_params)) ? $this->_params['HikkoshiRiyuu'] : null;
		$HikkoshiRiyuuSonota = (array_key_exists('HikkoshiRiyuuSonota', $this->_params)) ? $this->_params['HikkoshiRiyuuSonota'] : null;
		$NeedTokushuuText = (array_key_exists('NeedTokushuuText', $this->_params)) ? $this->_params['NeedTokushuuText'] : null;
		$NeedTokushuu = (array_key_exists('NeedTokushuu', $this->_params)) ? $this->_params['NeedTokushuu'] : null;
		$NeedTokushuuSonota = (array_key_exists('NeedTokushuuSonota', $this->_params)) ? $this->_params['NeedTokushuuSonota'] : null;
		$KounyuuKeikenText = (array_key_exists('KounyuuKeikenText', $this->_params)) ? $this->_params['KounyuuKeikenText'] : null;
		$KounyuuKeiken = (array_key_exists('KounyuuKeiken', $this->_params)) ? $this->_params['KounyuuKeiken'] : null;
		$SonotaZassiText = (array_key_exists('SonotaZassiText', $this->_params)) ? $this->_params['SonotaZassiText'] : null;
		$SonotaZassi = (array_key_exists('SonotaZassi', $this->_params)) ? $this->_params['SonotaZassi'] : null;
		$SonotaZassiName = (array_key_exists('SonotaZassiName', $this->_params)) ? $this->_params['SonotaZassiName'] : null;
		$SoufuKibouJyouhoushiText = (array_key_exists('SoufuKibouJyouhoushiText', $this->_params)) ? $this->_params['SoufuKibouJyouhoushiText'] : null;
		$SoufuKibouJyouhoushi = (array_key_exists('SoufuKibouJyouhoushi', $this->_params)) ? $this->_params['SoufuKibouJyouhoushi'] : null;
		$KikkakeText = (array_key_exists('KikkakeText', $this->_params)) ? $this->_params['KikkakeText'] : null;
		$Kikkake = (array_key_exists('Kikkake', $this->_params)) ? $this->_params['Kikkake'] : null;
		$KikkakeSonota = (array_key_exists('KikkakeSonota', $this->_params)) ? $this->_params['KikkakeSonota'] : null;
		$JyuushiKoumokuText = (array_key_exists('JyuushiKoumokuText', $this->_params)) ? $this->_params['JyuushiKoumokuText'] : null;
		$JyuushiKoumoku = (array_key_exists('JyuushiKoumoku', $this->_params)) ? $this->_params['JyuushiKoumoku'] : null;
		$JyuushiKoumokuSonota = (array_key_exists('JyuushiKoumokuSonota', $this->_params)) ? $this->_params['JyuushiKoumokuSonota'] : null;
		$FavFlg = (array_key_exists('FavFlg', $this->_params)) ? $this->_params['FavFlg'] : null;
		$Did = (array_key_exists('Did', $this->_params)) ? $this->_params['Did'] : null;
		$Sid = (array_key_exists('Sid', $this->_params)) ? $this->_params['Sid'] : null;
		$UAKbn = (array_key_exists('UAKbn', $this->_params)) ? $this->_params['UAKbn'] : null;
		$CampaignLocationFlg = (array_key_exists('CampaignLocationFlg', $this->_params)) ? $this->_params['CampaignLocationFlg'] : null;
		$CampaignAgechau = (array_key_exists('CampaignAgechau', $this->_params)) ? $this->_params['CampaignAgechau'] : null;
		$TimeStr = (array_key_exists('TimeStr', $this->_params)) ? $this->_params['TimeStr'] : null;
		$SelShop = (array_key_exists('SelShop', $this->_params)) ? $this->_params['SelShop'] : null;
		$SrhType = (array_key_exists('SrhType', $this->_params)) ? $this->_params['SrhType'] : null;
		$TownCd = (array_key_exists('TownCd', $this->_params)) ? $this->_params['TownCd'] : null;
	}

    /**
     * タイトルを設定
     * @see Apm_Controller_Base::setTitle()
     */
    protected function setTitle($title)
    {
    	parent::setTitle($title);
    	$this->_data['title'] = $title;
    }

    /**
     * フッタコメントを設定
     * @see Apm_Controller_Base::setFooterTitle()
     */
    protected function setFooterTitle($footerTitle)
    {
    	parent::setTitle($footerTitle);
    	$this->_data['title'] = $footerTitle;
    }
    /**
     * メタデータ 記述内容を設定
     * @see Apm_Controller_Base::setDescription()
     */
    protected function setDescription($description)
    {
    	parent::setDescription($description);
    	$this->_data['description'] = $description;
    }

    /**
     * メタデータ キーワードを設定
     * @see Apm_Controller_Base::setKeywords()
     */
    protected function setKeywords($keywords)
    {
    	parent::setKeywords($keywords);
    	$this->_data['keywords'] = $keywords;
    }

    /**
     * ヘッダータイトルを設定
     *
     * @param string $headerTitle ヘッダタイトル
     */
    protected function setHeaderTitle($headerTitle)
    {
    	$this->_data['headerTitle'] = $headerTitle;
    }

    /**
     * コンテンツタイトルを設定
     *
     * @param string $contentsTitle コンテンツタイトル
     */
    protected function setContentsTitle($contentsTitle)
    {
    	$this->_data['contentsTitle'] = $contentsTitle;
    }

    /**
     * bodyタグのonloadに追加するスクリプト
     *
     * @param string $script スクリプト
     */
    protected function setOnLoadBodyScript($script)
    {
		$this->_data['bodyOnloadScript'] = $script;
    }

    /**
     * ASメンバーズネット用共通タグ設定
     *
     * @param string $ComId 企業ID
     */
    protected function setAsnComInfo($ComId)
    {
		//=====モデルインスタンス生成=====
		$this->_model_asn = new Inquiry_Model_AsnEntry();

		// 企業情報取得
		$this->_data['cominfo'] = array();
		$this->_data['cominfo'] = $this->_model_asn->getCompany($ComId);

		// データ設定
		$this->_data['ComId'] = $ComId;
		$this->_data['ComGenruFlg'] = $this->_data['cominfo']['M86_GENRU_FLAG'];
		$this->_data['strComName'] = $this->_data['cominfo']['M86_COMPANY_NAME'];
		if (in_array($result[0]['M86_GENRU_FLAG'], Apm_Config_Search::$ASN_NO_BROWSER_TITLE)) {
			$this->_data['BrowserTitle'] = '';
		} else {
			$this->_data['BrowserTitle'] = '社宅ネット';
		}
		if (!empty($this->_data['cominfo']['M86_ETC_MAIL'])) {
			$this->_data['EtcFlg']     = '1';
			//$this->_data['ComEtcMail'] = $this->_data['cominfo']['M86_ETC_MAIL'];
		} else {
			$this->_data['EtcFlg']     = '0';
		}

		// ヘッダー・フッター設定
		$_asmember_header_helper = $this->getApmHelper(APPLICATION_PATH . '/modules/asnnet/views/helpers/header_helper.tpl');
		$_asmember_footer_helper = $this->getApmHelper(APPLICATION_PATH . '/modules/asnnet/views/helpers/footer_helper.tpl');
		$block = array();
		$block['header'] = $_asmember_header_helper->getBlock($this->_data);
		$block['footer'] = $_asmember_footer_helper->getBlock($this->_data);
		$this->_data['asnnetblock'] = $block;
    }

	/**
	 * キャンペーン関連パラメータを設定
	 *
	 * @param string $strCampaignKbn キャンペーン区分(必須)(複数の場合はカンマ区切り)
	 * @param int $intInquiryKbn 問い合わせ区分（0=物件問い合わせ、1=物件リクエスト、2=店舗問い合わせ）
	 */
	public function setCampaignParams($strCampaignKbn, $intInquiryKbn)
	{
		//クッキー情報
		$this->_data['lpCampaignCd'] = $_COOKIE['lp_campaign_cd'];
		$this->_data['webcallingType'] = $_COOKIE['webcalling_type'];

		$model = new Inquiry_Model_BukkenEntry();

		$campaignList =  $model->GetCampaignEx($strCampaignKbn, $intInquiryKbn);

		//選択状態設定
		for ($i = 0; $i < count($campaignList); $i++)
		{
			if (array_key_exists("CampaignFlag_" . $campaignList[$i]["M94_CAMPAIGN_CD"], $this->_params))
			{
				$campaignList[$i]["selected"] = true;
				// パラメータ削除
				unset($this->_params["CampaignFlag_" . $campaignList[$i]["M94_CAMPAIGN_CD"]]);
			}
			else
			{
				$campaignList[$i]["selected"] = false;
			}
		}

		$this->_data['allCampList'] = $campaignList;
	}

    /**
     * 問い合わせAPIへのリクエストを行う
     *
     * @param string $apiCtlName 対象APIコントローラ名
     * @param array $apiCtlName 対象APIコントローラ名
     */
    protected function callInquiryApi($apiCtlName,$params)
    {
//__log_debug_ex('★Inquiry_BaseController開始★'.$apiCtlName);
		//HTTPクライアント
		require_once 'Zend/Http/Client.php';

		$cli = new Zend_Http_Client($this->_config['apm']['ssl']['baseurl'].'inquiry/' . $apiCtlName,
		array(
			'maxredirects' => 1,
			'timeout' => 60
		)
		);
		$cli->setParameterPost(
			array(
				'mode'=>"json",
				'isMobile'=>"0",
				'CntctWayFax'=>$params['CntctWayFax'],
				'CntctWayMail'=>$params['CntctWayMail'],
				'CntctWayTel'=>$params['CntctWayTel'],
				'CntctWayCd'=>$params['CntctWayCd'],
				'CntctWayStr'=>$params['CntctWayStr'],
				'Fax'=>$params['Fax'],
				'Inquiry1'=>$params['Inquiry1'],
				'Inquiry2'=>$params['Inquiry2'],
				'Inquiry3'=>$params['Inquiry3'],
				'Inquiry4'=>$params['Inquiry4'],
				'Inquiry5'=>$params['Inquiry5'],
				'Mail'=>$params['Mail'],
				'MailMgznFlg'=>$params['MailMgznFlg'],
				'Name'=>$params['Name'],
				'Kana'=>$params['Kana'],
				'NameMei'=>$params['NameMei'],
				'NameSei'=>$params['NameSei'],
				'KanaSei'=>$params['KanaSei'],
				'KanaMei'=>$params['KanaMei'],
				'NeedTimeKbn'=>$params['NeedTimeKbn'],
				'PlaceKbn'=>$params['PlaceKbn'],
				'ShopCd'=>$params['ShopCd'],
				'Tel'=>$params['Tel'],
				'UseKbn'=>$params['UseKbn'],
				'SrhKbn'=>$params['SrhKbn'],
				'OemCd'=>$params['OemCd'],
				'vintGenruFlg'=>$params['vintGenruFlg'],
				'Url'=>$params['Url'],
				'Company'=>$params['Company'],
				'CtgryCd'=>$params['CtgryCd'],
				'ClaimTgtKbn'=>$params['ClaimTgtKbn'],
				'Mrrg'=>$params['Mrrg'],
				'MrrgNm'=>$params['MrrgNm'],
				'BuyExp'=>$params['BuyExp'],
				'BuyExpNm'=>$params['BuyExpNm'],
				'Comment'=>$params['Comment'],
				'Other'=>$params['Other'],
				'SiteKbn'=>$params['SiteKbn'],
				'Address'=>$params['Address'],
				'Address1'=>$params['Address1'],
				'Address2'=>$params['Address2'],
				'JobKbn'=>$params['JobKbn'],
				'JobNm'=>$params['JobNm'],
				'Sex'=>$params['Sex'],
				'SexNm'=>$params['SexNm'],
				'Charge'=>$params['Charge'],
				'ChargeNm'=>$params['ChargeNm'],
				'ChargeNmKana'=>$params['ChargeNmKana'],
				'TenpoNm'=>$params['TenpoNm'],
				'TenpoMail'=>$params['TenpoMail'],
				'PrefCd'=>$params['PrefCd'],
				'PrefName'=>$params['PrefName'],
				'AgeKbn'=>$params['AgeKbn'],
				'AgeNm'=>$params['AgeNm'],
				'Busho'=>$params['Busho'],
				'BukkenCd'=>$params['BukkenCd'],
				'Matrix'=>$params['Matrix'],
				'Yakushoku'=>$params['Yakushoku'],
				'Zip'=>$params['Zip'],
				'Zip1'=>$params['Zip1'],
				'Zip2'=>$params['Zip2'],
				'AllTenpoNm'=>$params['AllTenpoNm'],
				'TargetKbn'=>$params['TargetKbn'],
				'TargetNm'=>$params['TargetNm'],
				'ComId'=>$params['ComId'],
				'HikkoshiRiyuuText'=>$params['HikkoshiRiyuuText'],
				'HikkoshiRiyuu'=>$params['HikkoshiRiyuu'],
				'HikkoshiRiyuuSonota'=>$params['HikkoshiRiyuuSonota'],
				'NeedTokushuuText'=>$params['NeedTokushuuText'],
				'NeedTokushuu'=>$params['NeedTokushuu'],
				'NeedTokushuuSonota'=>$params['NeedTokushuuSonota'],
				'KounyuuKeikenText'=>$params['KounyuuKeikenText'],
				'KounyuuKeiken'=>$params['KounyuuKeiken'],
				'SonotaZassiText'=>$params['SonotaZassiText'],
				'SonotaZassi'=>$params['SonotaZassi'],
				'SonotaZassiName'=>$params['SonotaZassiName'],
				'SoufuKibouJyouhoushiText'=>$params['SoufuKibouJyouhoushiText'],
				'SoufuKibouJyouhoushi'=>$params['SoufuKibouJyouhoushi'],
				'KikkakeText'=>$params['KikkakeText'],
				'Kikkake'=>$params['Kikkake'],
				'KikkakeSonota'=>$params['KikkakeSonota'],
				'JyuushiKoumokuText'=>$params['JyuushiKoumokuText'],
				'JyuushiKoumoku'=>$params['JyuushiKoumoku'],
				'JyuushiKoumokuSonota'=>$params['JyuushiKoumokuSonota'],
				'FavFlg'=>$params['FavFlg'],
				'Did'=>$params['Did'],
				'Sid'=>$params['Sid'],
				'UAKbn'=>$params['UAKbn'],
				'CampaignLocationFlg'=>$params['CampaignLocationFlg'],
				'CampaignAgechau'=>$params['CampaignAgechau'],
				'TimeStr'=>$params['TimeStr'],
				'StCd'=>$params['StCd'],
				'RailCd'=>$params['RailCd'],
				'CityCd'=>$params['CityCd'],
				'SectCd'=>$params['SectCd'],
//				'shikiReiZero'=>$params['shikiReiZero'],
//				'FuroOp4'=>$params['FuroOp4'],
//				'FuroOp3'=>$params['FuroOp3'],
//				'FuroOp1'=>$params['FuroOp1'],
//				'FuroOp2'=>$params['FuroOp2'],
//				'KcnOp1'=>$params['KcnOp1'],
//				'KcnOp2'=>$params['KcnOp2'],
//				'WagamaOp8'=>$params['WagamaOp8'],
//				'WagamaOp1'=>$params['WagamaOp1'],
//				'WagamaOp7'=>$params['WagamaOp7'],
//				'WagamaOp2'=>$params['WagamaOp2'],
//				'WagamaOp6'=>$params['WagamaOp6'],
//				'WagamaOp4'=>$params['WagamaOp4'],
//				'WagamaOp5'=>$params['WagamaOp5'],
//				'WagamaOp3'=>$params['WagamaOp3'],
//				'WagamaOp9'=>$params['WagamaOp9'],
//				'ekitoho'=>$params['ekitoho'],
//				'OkugaiOp2'=>$params['OkugaiOp2'],
//				'OkugaiOp3'=>$params['OkugaiOp3'],
//				'OkugaiOp8'=>$params['OkugaiOp8'],
//				'OkugaiOp4'=>$params['OkugaiOp4'],
//				'OkugaiOp5'=>$params['OkugaiOp5'],
//				'OkugaiOp7'=>$params['OkugaiOp7'],
//				'OkugaiOp1'=>$params['OkugaiOp1'],
//				'OkugaiOp6'=>$params['OkugaiOp6'],
//				'madori12'=>$params['madori12'],
//				'madori11'=>$params['madori11'],
//				'madori14'=>$params['madori14'],
//				'madori10'=>$params['madori10'],
//				'madori22'=>$params['madori22'],
//				'madori21'=>$params['madori21'],
//				'madori24'=>$params['madori24'],
//				'madori32'=>$params['madori32'],
//				'madori31'=>$params['madori31'],
//				'madori34'=>$params['madori34'],
//				'madori41'=>$params['madori41'],
//				'SitunaiOp2'=>$params['SitunaiOp2'],
//				'SitunaiOp6'=>$params['SitunaiOp6'],
//				'SitunaiOp3'=>$params['SitunaiOp3'],
//				'SitunaiOp1'=>$params['SitunaiOp1'],
//				'SitunaiOp5'=>$params['SitunaiOp5'],
//				'SitunaiOp4'=>$params['SitunaiOp4'],
//				'Senyu1'=>$params['Senyu1'],
//				'Senyu2'=>$params['Senyu2'],
//				'Built'=>$params['Built'],
//				'Tinryo1'=>$params['Tinryo1'],
//				'Tinryo2'=>$params['Tinryo2'],
//				'TinryoJouken2'=>$params['TinryoJouken2'],
//				'FreeRent'=>$params['FreeRent'],
//				'HeyaWari'=>$params['HeyaWari'],
//				'Syubetu1'=>$params['Syubetu1'],
//				'Syubetu6'=>$params['Syubetu6'],
//				'Syubetu7'=>$params['Syubetu7'],
//				'Syubetu2'=>$params['Syubetu2'],
//				'Syubetu3'=>$params['Syubetu3'],
//				'Syubetu4'=>$params['Syubetu4'],
//				'Syubetu5'=>$params['Syubetu5'],
				'campaign'=>$params['campaign'],
				'tinryo1'=>$params['tinryo1'],
				'tinryo2'=>$params['tinryo2'],
				'meyasu_tinryo'=>$params['meyasu_tinryo'],
				'tinryo_jouken2'=>$params['tinryo_jouken2'],
				'tyusyajyo_komi'=>$params['tyusyajyo_komi'],
				'shikikin_nashi'=>$params['shikikin_nashi'],
				'reikin_nashi'=>$params['reikin_nashi'],
				'freerent'=>$params['freerent'],
				'heyawari'=>$params['heyawari'],
				'syokihiyo'=>$params['syokihiyo'],
				'shataku_koujyo'=>$params['shataku_koujyo'],
				'madori10'=>$params['madori10'],
				'madori11'=>$params['madori11'],
				'madori12'=>$params['madori12'],
				'madori14'=>$params['madori14'],
				'madori21'=>$params['madori21'],
				'madori22'=>$params['madori22'],
				'madori24'=>$params['madori24'],
				'madori31'=>$params['madori31'],
				'madori32'=>$params['madori32'],
				'madori34'=>$params['madori34'],
				'madori41'=>$params['madori41'],
				'madori42'=>$params['madori42'],
				'madori44'=>$params['madori44'],
				'madori51'=>$params['madori51'],
				'senyu1'=>$params['senyu1'],
				'senyu2'=>$params['senyu2'],
				'syubetu1'=>$params['syubetu1'],
				'syubetu2'=>$params['syubetu2'],
				'syubetu3'=>$params['syubetu3'],
				'syubetu4'=>$params['syubetu4'],
				'syubetu5'=>$params['syubetu5'],
				'ekitoho'=>$params['ekitoho'],
				'bas_riyou'=>$params['bas_riyou'],
				'built'=>$params['built'],
				'jyohou'=>$params['jyohou'],
				'kodawari1'=>$params['kodawari1'],
				'kodawari2'=>$params['kodawari2'],
				'kodawari20'=>$params['kodawari20'],
				'kodawari21'=>$params['kodawari21'],
				'kodawari22'=>$params['kodawari22'],
				'kodawari23'=>$params['kodawari23'],
				'kodawari24'=>$params['kodawari24'],
				'kodawari9'=>$params['kodawari9'],
				'kodawari10'=>$params['kodawari10'],
				'kodawari11'=>$params['kodawari11'],
				'kodawari18'=>$params['kodawari18'],
				'kodawari19'=>$params['kodawari19'],
				'kodawari15'=>$params['kodawari15'],
				'kodawari12'=>$params['kodawari12'],
				'kodawari14'=>$params['kodawari14'],
				'kodawari31'=>$params['kodawari31'],
				'kodawari95'=>$params['kodawari95'],
				'kodawari36'=>$params['kodawari36'],
				'kodawari93'=>$params['kodawari93'],
				'kodawari32'=>$params['kodawari32'],
				'kodawari94'=>$params['kodawari94'],
				'kodawari55'=>$params['kodawari55'],
				'kodawari54'=>$params['kodawari54'],
				'kodawari53'=>$params['kodawari53'],
				'kodawari97'=>$params['kodawari97'],
				'kodawari104'=>$params['kodawari104'],
				'kodawari103'=>$params['kodawari103'],
				'kodawari56'=>$params['kodawari56'],
				'kodawari98'=>$params['kodawari98'],
				'kodawari111'=>$params['kodawari111'],
				'kodawari75'=>$params['kodawari75'],
				'kodawari33'=>$params['kodawari33'],
				'kodawari107'=>$params['kodawari107'],
				'kodawari34'=>$params['kodawari34'],
				'kodawari61'=>$params['kodawari61'],
				'kodawari62'=>$params['kodawari62'],
				'kodawari77'=>$params['kodawari77'],
				'kodawari46'=>$params['kodawari46'],
				'kodawari4'=>$params['kodawari4'],
				'kodawari5'=>$params['kodawari5'],
				'kodawari101'=>$params['kodawari101'],
				'kodawari73'=>$params['kodawari73'],
				'kodawari112'=>$params['kodawari112'],
				'kodawari66'=>$params['kodawari66'],
				'kodawari8'=>$params['kodawari8'],
				'kodawari87'=>$params['kodawari87'],
				'kodawari59'=>$params['kodawari59'],
				'kodawari60'=>$params['kodawari60'],
				'kodawari78'=>$params['kodawari78'],
				'kodawari79'=>$params['kodawari79'],
				'kodawari67'=>$params['kodawari67'],
				'kodawari80'=>$params['kodawari80'],
				'kodawari65'=>$params['kodawari65'],
				'kodawari63'=>$params['kodawari63'],
				'kodawari83'=>$params['kodawari83'],
				'kodawari45'=>$params['kodawari45'],
				'kodawari113'=>$params['kodawari113'],
				'kodawari44'=>$params['kodawari44'],
				'kodawari86'=>$params['kodawari86'],
				'kodawari81'=>$params['kodawari81'],
				'kodawari91'=>$params['kodawari91'],
				'kodawari68'=>$params['kodawari68'],
				'kodawari70'=>$params['kodawari70'],
				'kodawari90'=>$params['kodawari90'],
				'kodawari7'=>$params['kodawari7'],
				'kodawari38'=>$params['kodawari38'],
				'kodawari39'=>$params['kodawari39'],
				'SelShop'=>$params['SelShop'],
				'SrhType'=>$params['SrhType'],
				'TownCd'=>$params['TownCd'],
				'keiyakutype'=>$params['keiyakutype'],
				'chushajoDaisu'=>$params['chushajoDaisu'],
				'UserComName'=>$params['UserComName'],
				'nyukyoM'=>$params['nyukyoM'],
				'nyukyoD'=>$params['nyukyoD'],
				'nyukyoBiko'=>$params['nyukyoBiko'],
				'naikenM'=>$params['naikenM'],
				'naikenD'=>$params['naikenD'],
				'condDsp'=>$params['condDsp'],
				'LpCampaignCd'=>$_COOKIE['lp_campaign_cd'],
				'LpRootCd'=>$_COOKIE['lp_root_cd'],
				// 2012.10.18 設備追加+18
				'kodawari114'=>$params['kodawari114'],
				'kodawari115'=>$params['kodawari115'],
				'kodawari116'=>$params['kodawari116'],
				'kodawari117'=>$params['kodawari117'],
				'kodawari118'=>$params['kodawari118'],
				'kodawari119'=>$params['kodawari119'],
				'kodawari120'=>$params['kodawari120'],
				'kodawari121'=>$params['kodawari121'],
				'kodawari122'=>$params['kodawari122'],
				'kodawari123'=>$params['kodawari123'],
				'kodawari124'=>$params['kodawari124'],
				'kodawari125'=>$params['kodawari125'],
				'kodawari126'=>$params['kodawari126'],
				'kodawari127'=>$params['kodawari127'],
				'kodawari128'=>$params['kodawari128'],
				'kodawari129'=>$params['kodawari129'],
				'kodawari130'=>$params['kodawari130'],
				'kodawari131'=>$params['kodawari131'],
				'kodawari132'=>$params['kodawari132'],
				'kodawari133'=>$params['kodawari133'],
				'kodawari134'=>$params['kodawari134'],
				'kodawari135'=>$params['kodawari135'],
				// 2013.03.05 SRC追加
				'kodawari136'=>$params['kodawari136']
			)
		);
		$response = $cli->request(Zend_Http_Client::POST);
		$encode = mb_detect_encoding($response->getBody());
		if ($encode != 'UTF-8') {
			$body = Apm_Util::mbConvertEncodingArray($response->getBody(), 'UTF-8', $encode);
		} else {
			$body = $response->getBody();
		}
		$resArray = json_decode($body, true);
		$result = $resArray["api_result"]["result"];
		// CV用
		$this->_CV_data['CV_ToiawaseId']	= $resArray["CV_ToiawaseId"];
		$this->_CV_data['CV_bukken']		= $resArray["CV_bukken"];
		$this->_CV_data['CV_TotalAmounts']	= $resArray["CV_TotalAmounts"];

		return $result;
    }
}
?>
